import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/page/Home'
import Login from '@/page/Login'
import Chat from '@/page/Chat'
import File from '@/page/File'
import Me from '@/page/Me'
import User from '@/page/User'
import Contact from '@/page/Contact'
import FileList from '@/page/FileList'
import Search from '@/page/Search'
import Space from '@/page/Space'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/chat',
      name: 'Chat',
      component: Chat
    },
    {
      path: '/file',
      name: 'File',
      component: File
    },
    {
      path: '/me',
      name: 'Me',
      component: Me
    },
    {
      path: '/contact',
      name: 'Contact',
      component: Contact
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/fileList',
      name: 'FileList',
      component: FileList
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/space',
      name: 'Space',
      component: Space
    }
  ]
})
